﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000499 RID: 1177
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class EntityBindPropScRsp : IMessage<EntityBindPropScRsp>, IMessage, IEquatable<EntityBindPropScRsp>, IDeepCloneable<EntityBindPropScRsp>, IBufferMessage
	{
		// Token: 0x17000F25 RID: 3877
		// (get) Token: 0x06003501 RID: 13569 RVA: 0x0009196C File Offset: 0x0008FB6C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<EntityBindPropScRsp> Parser
		{
			get
			{
				return EntityBindPropScRsp._parser;
			}
		}

		// Token: 0x17000F26 RID: 3878
		// (get) Token: 0x06003502 RID: 13570 RVA: 0x00091973 File Offset: 0x0008FB73
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return EntityBindPropScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000F27 RID: 3879
		// (get) Token: 0x06003503 RID: 13571 RVA: 0x00091985 File Offset: 0x0008FB85
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return EntityBindPropScRsp.Descriptor;
			}
		}

		// Token: 0x06003504 RID: 13572 RVA: 0x0009198C File Offset: 0x0008FB8C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EntityBindPropScRsp()
		{
		}

		// Token: 0x06003505 RID: 13573 RVA: 0x00091994 File Offset: 0x0008FB94
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EntityBindPropScRsp(EntityBindPropScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06003506 RID: 13574 RVA: 0x000919B9 File Offset: 0x0008FBB9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EntityBindPropScRsp Clone()
		{
			return new EntityBindPropScRsp(this);
		}

		// Token: 0x17000F28 RID: 3880
		// (get) Token: 0x06003507 RID: 13575 RVA: 0x000919C1 File Offset: 0x0008FBC1
		// (set) Token: 0x06003508 RID: 13576 RVA: 0x000919C9 File Offset: 0x0008FBC9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x06003509 RID: 13577 RVA: 0x000919D2 File Offset: 0x0008FBD2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as EntityBindPropScRsp);
		}

		// Token: 0x0600350A RID: 13578 RVA: 0x000919E0 File Offset: 0x0008FBE0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(EntityBindPropScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600350B RID: 13579 RVA: 0x00091A10 File Offset: 0x0008FC10
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600350C RID: 13580 RVA: 0x00091A4F File Offset: 0x0008FC4F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600350D RID: 13581 RVA: 0x00091A57 File Offset: 0x0008FC57
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600350E RID: 13582 RVA: 0x00091A60 File Offset: 0x0008FC60
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600350F RID: 13583 RVA: 0x00091A94 File Offset: 0x0008FC94
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06003510 RID: 13584 RVA: 0x00091AD2 File Offset: 0x0008FCD2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(EntityBindPropScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06003511 RID: 13585 RVA: 0x00091B03 File Offset: 0x0008FD03
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06003512 RID: 13586 RVA: 0x00091B0C File Offset: 0x0008FD0C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 112U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040014C4 RID: 5316
		private static readonly MessageParser<EntityBindPropScRsp> _parser = new MessageParser<EntityBindPropScRsp>(() => new EntityBindPropScRsp());

		// Token: 0x040014C5 RID: 5317
		private UnknownFieldSet _unknownFields;

		// Token: 0x040014C6 RID: 5318
		public const int RetcodeFieldNumber = 14;

		// Token: 0x040014C7 RID: 5319
		private uint retcode_;
	}
}
